#ifndef FICHEANNUELLE_H
#define FICHEANNUELLE_H

#include "ui_ficheannuelle.h"
#include "tools.h"
#include <QWidget>
#include <QTextDocument>
#include <QSqlDatabase>

class FicheAnnuelle:public QWidget,public Ui::FicheAnnuelleWidget
{
    Q_OBJECT
    public:
        FicheAnnuelle (QWidget * parent = 0);
        ~FicheAnnuelle ();
        void setInformations(const QString & name, const QString & firstname, const QString & guid, const QString & userpref);
    protected slots:
        void findDatas();
        void pushDateOnBeginning();
        void showHeads(bool checked);
        void displayItem(const QString & item);
    private:
        QString getCheckedDatas(int type);
        QStringList getBlobs(const QString & numbertype);
        void initComboUsers();
        QStringList getBlobFromIdblob(const QStringList & listofblobs );
        QString convertFromMedintuxStyle(const QString & texttoconvert,int typeofhead);
        QString m_name;
        QString m_firstname;
        QString m_guid;
        QString m_user;
        QTextDocument * m_document;
        QSqlDatabase m_dbdrtux;
        QHash<int,QCheckBox*> m_hashTypeAndCheckBox;
        ToolsSpace::Tools *m_tools;
};
#endif

